package com.zrrd.yunchmall.product;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author Liangyaoyun
 */
@EnableFeignClients
@SuppressWarnings("all")
@EnableDiscoveryClient
@SpringBootApplication
@ComponentScan(value = {"com.zrrd.yunchmall"})
//少了这个依赖注入失败,bean无法加入到spring容器里面
@MapperScan("com.zrrd.yunchmall.product.mapper")
public class ProductApp {
    public static void main(String[] args) {
        SpringApplication.run(ProductApp.class,args);
    }
}
